/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.statedata;

//~--- non-JDK imports --------------------------------------------------------

import javadrone.Sensor;
import javadrone.SensoryData;

/**
 *
 * @author Nikzzay
 * install in both client and server
 */
public class StateData<T> implements SensoryData<T> {
    private Sensor DESCRIPTOR;
    private T      s;

    public StateData(T s, Sensor DESCRIPTOR) {
        this.s          = s;
        this.DESCRIPTOR = DESCRIPTOR;
    }

    @Override
    public T getData() {
        return s;
    }

    @Override
    public Sensor getDescriptor() {
        return DESCRIPTOR;
    }

    @Override
    public String toString() {
        return "STATE DATA: " + s.toString();
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
